home *** CD-ROM | disk | FTP | other *** search
- Path: wholder2.cts.com!user
- From: dbell@shvn.com (Doug Bell)
- Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
- Subject: Re: Will Java kill C++?
- Date: Wed, 17 Apr 1996 22:19:59 -0700
- Organization: FTL Games
- Message-ID: <dbell-1704962219590001@wholder2.cts.com>
- References: <3134D499.653E@ix.netcom.com> <313613B2.136E@ksopk.sprint.com> <4i7qhl$ik6@cronkite.seas.gwu.edu> <4iuhi7$fmf@sundog.tiac.net> <4iumap$mn5@hustle.rahul.net> <31582A45.3742@vmark.com> <3163C031.4FB1@esec.ch> <3164888D.2B01@concentric.net> <4kbfn8$1bu@news1.is.net> <316971B0.FEF@amd.com> <Jan-1104960033370001@news.magmacom.com> <31711755.328F@charm.net> <Jan-1504962032120001@news.magmacom.com> <4l3vf0$57k@gidora.kralizec.net.au>
- NNTP-Posting-Host: wholder2.cts.com
-
- Colin Johnson <colin@pangaea.com.au> wrote:
-
- > Jan@Bytesmiths.com (Jan Steinman) wrote:
- > >In article <31711755.328F@charm.net>, Bob Arning <arning@charm.net> wrote:
- > >
- > >> Jan Steinman wrote:
- > >...
- > >> > Ready, set, go (standard disclaimer, typed in off the top of my head):
- > >> >
- > >> > | pi n |
- > >> > pi := 0.
- > >> > n := "number of hex digits of precision desired"
- > >> > 1 to: n do: [:i | pi := pi +
- > >> > ((1 / (16 raisedTo: i) *
- > >> > ((4 / ((8 * i) + 1)) +
- > >> > (2 / ((8 * i) + 4)) +
- > >> > (1 / ((8 * i) + 5)) +
- > >> > (1 / ((8 * i) + 6))))].
- > >> > pi
- > >> >
- > >> > Okay, has your C compiler finished yet? :-)
- > >...
- > >> Your standard disclaimer notwithstanding, it would be a more impressive
- > >> example if it actually worked. Where does the missing right paren go?
- > >
- > >Oops! I separated it into one factor and four terms, but I guess I wasn't
- > >counting right. Without the Smalltalk paren-matcher, I'd have to guess it
- > >goes before the square bracket. Sorry!
- > >
- > > : Jan Steinman <mailto:Jan@Bytesmiths.com>
- > > : Bytesmiths, the Smalltalk specialists <http://www.bytesmiths.com>
- > > : "This is witty signature 1 of 47,288."
- >
- >
- > Of course, guys, the wonderful thing about Smalltalk is that if Jan's code
- > had been typed into a workspace and executed, the error (a simple typo)
- > would have been detected immediately. What about the poor C++ coder? Fix
- > it, then compile -again-! :-)
- >
- > Regards,
- > Col
-
- With an IDE, there's not that much difference anymore. You're compiling
- from the editor vs. executing from the editor. And a smart editor would
- have made the mismatch obvious as it was typed. What about the poor
- Smalltalk programmer? Fix it, then execute -again-! :-)
-
- Doug Bell
- dbell@shvn.com
-